All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----sjl.Not2
Not2
class can wrap
a Predicate2
class so that the truth value is reversed.
Algo.sort(vector.begin(), vector.end(), new Not2(new PredLessInteger()));The above example will sort a vector of Integers in reverse.
Copyright © 1996 Finn Bock
public Not2(Predicate2 pred)
public boolean compare(Object o1, Object o2)
All Packages Class Hierarchy This Package Previous Next Index